<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>面向过程</title>
	</head>
	<body>
		<script type="text/javascript">
			function getMax(){
				console.log(arguments);
				var max = arguments[0];
				for(var i=1;i<arguments.length;i++){
					if(arguments[i]>max){
						max = arguments[i];
					}
				}
				return max;
			}
			function getMin(){
				console.log(arguments);
				var min = arguments[0];
				for(var i=1;i<arguments.length;i++){
					if(arguments[i]<min){
						min = arguments[i];
					}
				}
				return min;
			}
			var max = getMax(1,5,3,67,32,70);
			console.log(max);
			var min = getMin(1,3,5,67,70,6);
			console.log(min);
		</script>
	</body>
</html>